.format-settings-container {
  padding: 0;
  min-height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

/* 页面头部 */
.page-header {
  padding: 60px 40px 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.page-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.page-header p {
  font-size: 1.2rem;
  color: #718096;
  margin: 0;
}

/* 设置内容 */
.settings-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px;
}

/* 设置区域 */
.settings-section {
  background: white;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.settings-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.settings-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 设置网格 */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* 设置项 */
.setting-item {
  padding: 24px;
  background: #f7fafc;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.setting-item:hover {
  border-color: #cbd5e0;
  background: #edf2f7;
  transform: translateY(-2px);
}

.setting-item:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 设置标签 */
.setting-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #2d3748;
  cursor: pointer;
  margin-bottom: 8px;
}

.setting-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #667eea;
  cursor: pointer;
}

.setting-description {
  color: #718096;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* 表单控件 */
.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-select {
  cursor: pointer;
}

/* 标签样式 */
label {
  font-weight: 600;
  color: #4a5568;
  display: block;
  margin-bottom: 8px;
}

/* 操作按钮区域 */
.settings-actions {
  background: white;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.settings-actions h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 30px;
}

.actions-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  background: white;
  color: #4a5568;
  border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: white;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* 预设配置区域 */
.presets-section {
  background: white;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.presets-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 30px;
}

.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.preset-card {
  padding: 24px;
  background: #f7fafc;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.preset-card:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.02);
  transform: translateY(-2px);
}

.preset-card.active {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.preset-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.preset-name {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
}

.preset-description {
  color: #718096;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* 错误信息 */
.error-message {
  margin-bottom: 30px;
}

.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  font-weight: 500;
}

.alert-error {
  background: #fed7d7;
  color: #e53e3e;
  border: 2px solid #feb2b2;
}

.alert-success {
  background: #f0fff4;
  color: #38a169;
  border: 2px solid #9ae6b4;
}

.alert-icon {
  font-size: 1.2rem;
}

/* 加载状态 */
.loading-state {
  text-align: center;
  padding: 80px 40px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-state p {
  color: #718096;
  font-size: 1.1rem;
}

/* 高级设置折叠面板 */
.advanced-settings {
  margin-top: 20px;
}

.advanced-toggle {
  background: none;
  border: none;
  color: #667eea;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  transition: all 0.3s ease;
}

.advanced-toggle:hover {
  color: #5a67d8;
}

.advanced-content {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #e2e8f0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-header {
    padding: 40px 20px 30px;
  }
  
  .page-header h2 {
    font-size: 2rem;
  }
  
  .settings-content {
    padding: 20px;
  }
  
  .settings-section {
    padding: 24px;
  }
  
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .presets-grid {
    grid-template-columns: 1fr;
  }
  
  .actions-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .format-settings-container {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  }
  
  .settings-section,
  .settings-actions,
  .presets-section {
    background: #2d3748;
    color: #e2e8f0;
  }
  
  .setting-item,
  .preset-card {
    background: #4a5568;
    border-color: #718096;
  }
  
  .form-input,
  .form-select {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
  }
} 